package com.monkey.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author：monkey-L
 * @description: .
 * @date: 10:53 2021/10/4
 */
@Data
@AllArgsConstructor
public class Results {
    private boolean success;

    private int code;

    private String msg;

    private Object data;

    public static Results success(Object data){
        return new Results(true, 200, "success", data);
    }
    public static Results fail(int code, String msg){
        return new Results(false, code, msg, null);
    }
}
